﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Base_SupplyCityForm2.aspx.cs" Inherits="FS.Web.BLL.Visa_Base.Base_SupplyCityForm2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/Validator/JValidator.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/artDialog.source.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/iframeTools.source.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <script type="text/javascript">

        function GetCityID() {
            var cityid = $("#City_id").val();
            var parm = 'action=getcityarea&cityid=' + escape(cityid);
            getAjax('base.ashx', parm, function (rs) {
                try {
                    var V_JSON = rs;
                    var json = eval("(" + V_JSON + ")");

                    $("#Ref_CityArea").empty();
                    for (var i = 0; i < json.MENU.length; i++) {
                        var menu = json.MENU[i];
                        $("#Ref_CityArea").append("<option value='" + menu.ID +
                            "'>" + menu.NAME + "</option>");
                        $("#Ref_CityArea").val(menu.ID);
                    }

                    //获取国家下的签证类型
                    GetCertType();
                } catch (e) {
                }
            });
        }

        function GetCertType() {
            var cityid = $("#City_id").val();

            var parm = 'action=getcerttype&cityid=' + escape(cityid);
            getAjax('base.ashx', parm, function (rs) {
                try {
                    var V_JSON = rs;
                    var json = eval("(" + V_JSON + ")");

                    $("#Ref_CertType").empty();
                    var len = json.MENU.length;
                    if (len == 0) {
                        showTipsMsg("找不到签证国家下的签证类型，请到【签证国家】窗口维护！", 2000, 5);
                    }
                    else {
                        for (var i = 0; i < len; i++) {
                            var menu = json.MENU[i];
                            $("#Ref_CertType").append("<option value='" + menu.ID +
                                "'>" + menu.NAME + "</option>");
                        }
                        getCertinfo();  //获取选中的值
                    }
                } catch (e) {
                }
            });
        }
        function getCertinfo() {
            var ls = $("#Ref_CertType").val();
            $("#_certtype").val(ls);
        }

    </script>
</head>
<body>    
    <form id="form1" runat="server">
    <input type="hidden" id="_certtype" runat="server" />    
    <table border="0" cellpadding="0" cellspacing="0" class="frm">                
        <tr>
            <th>
                所属区域：
            </th>
            <td>
                <asp:DropDownList ID="Ref_cityarea1" runat="server" style="width: 85%" AutoPostBack="True" class="select"
                    OnSelectedIndexChanged="Ref_cityarea1_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>  
        <tr>
            <th>
                签证国家：
            </th>
            <td>
                <asp:DropDownList ID="City_id" runat="server"  datacol="yes" err="签证国家" style="width: 85%" class="select"
                    AutoPostBack="True" OnSelectedIndexChanged="City_id_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>               
         <tr>
            <th>
                签证类型：
            </th>
            <td>
                <asp:DropDownList ID="Ref_CertType" runat="server" datacol="yes" err="所属区域" style="width: 85%" class="select" >
                </asp:DropDownList>
                
            </td>
        </tr>
        <tr>
            <th>
                供应商：
            </th>
            <td>
                <select id="Supply_id" runat="server" type="text" datacol="yes" err="供应商" class="select"
                    checkexpession="NotNull" style="width: 85%" />
            </td>
        </tr>
        <tr>
            <th>
                工作日：
            </th>
            <td>                
                <input id="SupplyCity_WorkDay" runat="server" type="text" class="txt" datacol="yes" err="工作日"
                    checkexpession="Num" style="width: 85%" />
            </td>
        </tr>
        <tr>
            <th>
                价格A：
            </th>
            <td>
                <input id="SupplyCity_EndPrice1" runat="server" type="text" datacol="yes" err="成本价格"
                    checkexpession="Double" style="width: 85%" />
            </td>
        </tr>
         <tr>
            <th>
                价格B：
            </th>
            <td>
                <input id="SupplyCity_EndPrice2" runat="server" type="text" datacol="yes" err="成本价格"
                    checkexpession="Double" style="width: 85%" />
            </td>
        </tr> 
         <tr>
            <th>
                价格C：
            </th>
            <td>
                <input id="SupplyCity_EndPrice3" runat="server" type="text" datacol="yes" err="成本价格"
                    checkexpession="Double" style="width: 85%" />
            </td>
        </tr>  
        <tr>
            <th>
                默认默认供应商：
            </th>
            <td>                
                <select id="SupplyCity_IsDefault" runat="server" type="text" datacol="yes" err="默认供应商" class="select"
                    checkexpession="NotNull" style="width: 85%" >
                    <option value="0">否</option>
                    <option value="1">是</option>
                </select>
            </td>
        </tr>                         
        <tr>
            <th>
                备注：
            </th>
            <td>
                <textarea id="SupplyCity_remark" class="txtRemark" runat="server" style="width: 85.5%;
                    height: 50px;"></textarea>
            </td>
        </tr>
    </table>
    <div class="frmbottom">
        <asp:LinkButton ID="Save" runat="server" class="l-btn" OnClientClick="return CheckDataValid('#form1');"
            OnClick="Save_Click"><span class="l-btn-left">
            <img src="/Themes/Images/save.png" alt="" />保 存</span></asp:LinkButton>
        <a class="l-btn" href="javascript:void(0)" onclick="OpenClose();"><span class="l-btn-left">
            <img src="/Themes/Images/cancel.png" alt="" />关 闭</span></a>
    </div>
    </form>
</body>
</html>